package com.util;

public class ListNode {
    public int val; // 当前节点存储的值
    public ListNode next; // 指向下一个节点的引用

    public ListNode(int val, ListNode next) {
        this.val = val;
        this.next = next;
    }

    public ListNode(int x) {
        val = x;
        next = null;
    }
}
